// vite.config.ts
import { defineConfig, loadEnv } from "file:///C:/Users/20230801/Desktop/electron/demots/demoProject/node_modules/vite/dist/node/index.js";
import { fileURLToPath, URL } from "node:url";
import vue from "file:///C:/Users/20230801/Desktop/electron/demots/demoProject/node_modules/@vitejs/plugin-vue/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/Users/20230801/Desktop/electron/demots/demoProject/vite.config.ts";
var viteConfig = defineConfig((mode) => {
  console.log(mode, "111");
  const env = loadEnv(mode.mode, process.cwd());
  return {
    plugins: [vue()],
    resolve: {
      alias: {
        // 配置 @ 导入src
        "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
      }
    },
    root: process.cwd(),
    server: {
      host: "localhost",
      hmr: true,
      // 开启热更新
      open: true
    },
    // 注意 Vite 默认是不加载 .env 文件的，需要手动配置
    define: {
      // 在配置中使用环境变量
      __APP_ENV__: JSON.stringify(env.APP_ENV)
    }
  };
});
var vite_config_default = viteConfig;
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFwyMDIzMDgwMVxcXFxEZXNrdG9wXFxcXGVsZWN0cm9uXFxcXGRlbW90c1xcXFxkZW1vUHJvamVjdFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcMjAyMzA4MDFcXFxcRGVza3RvcFxcXFxlbGVjdHJvblxcXFxkZW1vdHNcXFxcZGVtb1Byb2plY3RcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1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